﻿//Create By Leven
//Copyright 2008 LevenStudio
//http://leven.com.cn/
//For LevenBlog2.0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace LevenBlog.Core.Entities
{
    /// <summary>
    ///表lb_archive
    /// </summary>
    [Serializable]
    [DataContract(Name = "archive")]
    [Table("lb_archive", Info = "")]
    public class lb_archive : BaseEntity
    {
        [DataMember]
        [Column("id", DataType.Int32, Length = 4, CanNull = false, AutoIncrement = true, PrimaryKey = true)]
        public int id { get; set; }

        [DataMember]
        [Column("year", DataType.Int32, Length = 4, CanNull = false)]
        public int year { get; set; }

        [DataMember]
        [Column("month", DataType.Int32, Length = 4, CanNull = false)]
        public int month { get; set; }

        [DataMember]
        [Column("num", DataType.Int32, Length = 4, CanNull = false)]
        public int num { get; set; }

        public lb_archive()
        {
            id = -1;
            year = 0;
            month = 0;
            num = 1;
        }

    }
}

